so i have a tale for you all
so im sitting here trying to add the source leak to a repo, right?
and at first when i add the files git goes and starts changing all the line endings
no sir we dont want that here
so i go and set core.autocrlf=false like a good boy and git add .
and then the motherfucker hangs like a nigger
now im not very good at googling but it seems like there is a bug when you try to git add large amounts of files with core.autocrlf=false and crlf as the line ending
so i try to add a few files one at a time and it works fine
only gives me shit when i try to git add . or git add * or git add -a
so git add . works fine with core.autocrlf=/default/
git add . shits the bed with core.autocrlf=false
and git add program.c works fine either way
well fuck
so anyway, im not good at storytelling
so i just shit together a powershell thing to add the files one at a time for me
now i never touched a powershell in my life until now so if i could have done something better go ahead and bitch at me
but here is my powershell thing
foreach ($f in Get-ChildItem -Recurse -File){
$outfile = $f.FullName | Resolve-Path -Relative
$msg = "Adding " + $outfile
git add $outfile
echo $msg
}i have no idea how to get powershell to print command output so echo $msg is what ye get
seems to work okay, it takes a fuckload of time though to go through everything
it takes a moment at the start to populate the foreach array/list/map/whatever it is but not too long at all
i cancelled after a minute and did git status and yep it seems to be staging the files yes sir
im letting the whole thing run right now and see if it will finish
hope this helps someone at some point